module.exports = {
  presets: [
    [
      '@vue/cli-plugin-babel/preset',
      {
        useBuiltIns: 'usage',
        corejs: 3
      }
    ]
  ],
  // 按需引入 vant 组件
  plugins: [
    [
      'import',
      {
        libraryName: 'vant',
        libraryDirectory: 'es',
        // 按需引入 Less 样式源文件
        style: (name) => `${name}/style/less`
      },
      'vant'
    ]
  ]
}
